#!/usr/bin/python

# First about list
months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dev']
#print(len(months))

categroies = ['Main dish','Meat','Fish','Soup','Cookies']
#for cat_num in range( 0, len(categroies)):
#    print(categroies[cat_num])

DaysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31]
#print(DaysInMonth[1])


# Then string
string='The time has come'
#print(string[1])
print("string: " + string)
print("string.find('time'): " + str(string.find('time')))
print("string.find('apple'): " + str(string.find('apple')))
print("string.split(' '): " + str(string.split(' ')))

# String replacement
#print("Month = %s" % months[0])
a=0
for cntr in range(0,12):
    print("%s has %s days." % (months[cntr], DaysInMonth[cntr]))
    a+=DaysInMonth[cntr]
print(a)

# Assignment
#variable=value

# This is a comment

# IF statement
x=3
y=5
if x==y:
    print("x==y")
else:
    print("x!=y")

loop=1
while loop <=5:
    print loop
    loop+=1
